package com.company.testJSoup;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;

import java.io.IOException;

/**
 * Created by v on 17-4-6.
 */
public class OnlineTest {
    public static void main(String[] args) throws IOException{
        Document doc=Jsoup.connect("http://www.open-open.com").get();
        Element links=doc.select("a").first();

        System.out.println(links.attr("abs:href"));
    }
}
